package com.example.dao;

import com.example.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao {
    @Select("select * from user where phone=#{phone}")
    public User selectbyphone(String phone);

    @Insert("insert into user (id,phone,status) values (#{id},#{phone},#{status})")
    public void savephone(User user);
}
